package com.homework.data0318.work1;

public class Truck extends Car {
    @Override
    public void by(){
        super.by();
        System.out.println(name+"正在危险驾驶");
    }


    public static void main(String[] args) {
        Truck truck = new Truck();
        truck.setName("卡车");
        truck.setSum(3);
        truck.by();
        truck.brking();
    }

}
